<html>
<head>
<title> Reset password </title>
</head>
<body>
<?php
//connecting database
$host_name="localhost";
$user_name="root";
$pass_name="theshoppingbuzz";
$db_name="theshoppingbuzz";
@mysql_connect($host_name,$user_name,$pass_name) or die("couldnt connect database");
@mysql_select_db($db_name) or die("no database");
//echo "database connected";

//selecting security question
//select your security question
?>

<form name="myform" action="eemail.php" method="post">
E-mail id:
<input name="email_id" type="text" />
Secqurity Question:
<select name="sec_q">
<option name="sec_q" value="Which place you born?">Which place you born? </option>
<option name="sec_q" value="What is your nick name?">What is your nick name? </option>
</select>
</br>
<label width="20%"  id="ansError" style="color:red;"></label>
Secqurity Answer:
<input name="sec_a" type="text" />
<input name="Submit" type="Submit" value="Submit"/>

<label id="php"/>
<script type="text/javascript">
function showMsg()
{
//alert("checking");
var sec_ans = document.myform.sec_a.value;
//var success = 1;

	
	if(sec_ans == "")
	{
		document.getElementById("ansError").innerHTML = "Please enter Secqurity answer";
		//success = 0;
	}
	document.myform.submit();
	alert("submitted");
	
}
	

</script>
</form>	
</body>
</html>